package com.nCoV.EpidemicSurveillance.domain;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/** 
* @author 作者 罗穆健: 
* @version 创建时间：2020年1月10日 下午4:03:43 
* 类说明 
*/
public class Regist {

	String username;// 这个是账号
	String name;
	String password;
	String role;	
	String id;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		PasswordEncoder encoder = new BCryptPasswordEncoder();
		password = encoder.encode(password);
		this.password = password;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
}
 